package com.hoppinzq.service;

import com.hoppinzq.service.annotation.ServiceRegister;
import com.hoppinzq.service.annotation.ServiceRegisterMethod;
import com.hoppinzq.service.bean.User;

import java.util.Date;

@ServiceRegister(title = "测试服务",description = "这是测试服务，仅仅是一个demo")
public class TestServiceImpl implements TestService1{

    @Override
    @ServiceRegisterMethod(title = "测试方法",description = "略略略",isShow = true)
    public String test(String msg) {
        return "test:"+msg;
    }

    @Override
    @ServiceRegisterMethod(title = "测试方法2",description = "略略略2",isShow = true)
    public void test2(User user) {
        user.setUsername("abc");
        user.setPassword("asd");
        user.setDescription("zxc");
        user.setCreate(new Date());
    }
}
